package com.example.demo.entity;


import java.io.Serializable;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户类
 * @author Henry.Y
 * 2019年5月13日
 */
@Data
@NoArgsConstructor
public class User implements Serializable{
	
	private static final long serialVersionUID= 8303991461229778660L;

	private String id;
	
	private String username;
	
	private String password;
	
	private String salt;
	
	private Boolean locked= Boolean.FALSE;
	
	public String getCredentialSalt(){
		
		return username.concat(salt);
	}
	
	public User(String username,String password){
		this.username= username;
		this.password= password;
	}
	
}
